class ChangeDistrictDepartmentProvinceToCulturalHeritageCulturalInstitution < ActiveRecord::Migration
  def self.up
    remove_column :cultural_heritage_cultural_institutions, :province
    remove_column :cultural_heritage_cultural_institutions, :departament
    add_column :cultural_heritage_cultural_institutions, :province, :integer
    add_column :cultural_heritage_cultural_institutions, :department, :integer
    add_column :cultural_heritage_cultural_institutions, :district, :integer
  end

  def self.down
    remove_column :cultural_heritage_cultural_institutions, :province
    remove_column :cultural_heritage_cultural_institutions, :department
    remove_column :cultural_heritage_cultural_institutions, :district
    add_column :cultural_heritage_cultural_institutions, :province, :string
    add_column :cultural_heritage_cultural_institutions, :department, :string    
  end
end
